#include <QtGui>

#include "infowin.h"

InfoWin::InfoWin(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
{
  tabWidget = new QTabWidget;
  tabWidget->addTab(new GeneralTab(), tr("Summary"));
  tabWidget->addTab(new GeneralTab(), tr("mas"));
  tabWidget->addTab(new GeneralTab(), tr("donk"));
  
  QDialogButtonBox *buttonBox;
  
  buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok
				   | QDialogButtonBox::Cancel);
  
  connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
  connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
  
  QVBoxLayout *mainLayout = new QVBoxLayout;
  mainLayout->addWidget(tabWidget);
  mainLayout->addWidget(buttonBox);
  setLayout(mainLayout);
  
  setWindowTitle(tr("Info"));
  
}

GeneralTab::GeneralTab(QWidget *parent) : QWidget(parent)
{
} 
